package cn.com.nes.site.entity.em.ctce;

/**
 * 围墙厚度
 */
public enum CnmdEnum {
    _01("01", "暖气片"),
    _05("05", "风机盘管"),
    _06("06", "暖气片加风机盘管"),
    _07("07", "蓄热式电暖器"),
    _08("08", "地暖加暖气片"),
    _09("09", "其他"),
    _10("10", "不适用"),
    _11("11", "空气源热泵热风机"),
    _12("12", "小炭炉取暖"),

    ;

    private final String code;

    private final String description;

    CnmdEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public static CnmdEnum getByCode(String code) {
        for (CnmdEnum a : CnmdEnum.values()) {
            if (a.getCode().equals(code)) {
                return a;
            }
        }
        return null;
    }

    public static CnmdEnum getByDescription(String description) {
        for (CnmdEnum a : CnmdEnum.values()) {
            if (a.getDescription().equals(description)) {
                return a;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
